package com.xzc.one.common.aop;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author xiongzhicong
 * @create 2019-11-02 13:09
 **/
@Configuration
public class FilterConfig {
//    @Bean
//    public FilterRegistrationBean buildAFilter() {
//        FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
//        filterRegistrationBean.setOrder(1);
//        filterRegistrationBean.setFilter(new TokenFilter());
//        filterRegistrationBean.setName("filter1");
//        filterRegistrationBean.addUrlPatterns("/*");
//        return filterRegistrationBean;
//    }
}
